package com.zy.dubbo.consumer.controller;

import com.zy.dubbo.api.test.TestService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("test")
public class TestController {

    @DubboReference(retries = 1)
    private TestService testService;

    @RequestMapping("getInfo")
    private String getInfo(String id) {
        return testService.getInfo(id);
    }
}
